import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import {
  Table,
  Card,
  Button,
  Divider,
  PageHeader,
  Row,
  Col,
  Form,
  Input,
  Select,
  Badge,
  Modal,
} from 'antd';
import 'antd/dist/antd.css';
import { Module } from 'module';


const routes = [
  {
    path: 'index',
    breadcrumbName: '首页',
  },
  {
    path: '',
    breadcrumbName: '渠道管理',
  },
  {
    path: 'add',
    breadcrumbName: '新增渠道',
  },
];


class ConfigChannelPage extends React.PureComponent {
  //渲染
  render() {
    return (
      <Modal
      destroyOnClose
      title="新建规则"
      visible={modalVisible}
      onOk={okHandle}
      onCancel={() => handleModalVisible()}
    >
      </Modal>
     
    );
  }
}

//字面意思就是，把models的state变成组件的props
function mapStateToProps(state) {
  console.log(state);
  return { channel: state.channel } // test就是models命名空间名字;
}
export default connect(mapStateToProps)(AddChannelPage)   
